package com.xiashitech.interfaces.apiservice.dto.user;

import lombok.*;

import java.util.Date;
import java.util.List;

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserInfoResponse {
    private String message;
    private Integer code;
    private Data data;
    private Boolean result;

    @Getter
    @Setter
    @NoArgsConstructor
    public static class Data {
        private String status;
        private String domain;
        private String code;
        private String telephone;
        private Date create_time;
        private String country_code;
        private String iso_code;
        private String logo;
        private Integer id;
        private String display_name;
        private Integer role;
        private String type;
        private List<String> leader;
        private String username;
        private Date update_time;
        private String wx_userid;
        private String staff_status;
        private Integer password_valid_days;
        private String qq;
        private String language;
        private Date password_update_time;
        private Boolean enabled;
        private String time_zone;
        private List<Department> departments;
        private String email;
        private Extra extras;
        private String wx_openid;
        private Integer position;
        private Integer category_id;
    }

    @Getter
    @Setter
    @NoArgsConstructor
    public static class Department {
        private Integer order;
        private Integer id;
        private String full_name;
        private String name;
    }

    @Getter
    @Setter
    @NoArgsConstructor
    public static class Extra {
        private String extdepartment;
        private String extrole;
        private String extposition;
    }
}
